package com.minglv.mini.apiclient;

import com.dtflys.forest.annotation.*;
import com.dtflys.forest.http.ForestResponse;

import java.util.Map;

public interface WxClient {

    @Get("https://api.weixin.qq.com/sns/jscode2session")
    ForestResponse<Map> jscode2session(@Query Map<String,Object> varMap);

    @Get("https://api.weixin.qq.com/cgi-bin/token")
    ForestResponse<Map> cgiBinToken(@Query Map<String,String> varMap);

    @Post("https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={token}")
    ForestResponse<byte[]> getwxacodeunlimit(@Var("token") String token, @JSONBody Map varMap);

}
